package com.example.master.service.Impl;

import com.example.master.entity.vo.GamesVO;
import com.example.master.mapper.*;
import com.example.master.service.*;
import com.example.master.utils.*;
import org.springframework.beans.factory.annotation.*;
import org.springframework.stereotype.*;

import java.util.*;

/**
 * @Author Mr.Yuan
 * @Date 2023/2/6 16:12
 * @PackageName:com.example.master.service.Impl
 * @ClassName: ServicesImpl
 * @Description: TODO
 * @Version 1.0
 */
@Service
public class GameSerivceImpl implements GameService {

    @Autowired
    private GameMapper gameMapper;


    @Override
    public Result getId(Integer subjectId) {
        //
        List<GamesVO> allservice = gameMapper.getCode(subjectId);
        if (allservice != null) {
            return Result.success(allservice);
        }
        return Result.error("查询为空");
    }
}



